<template>
  <el-form ref="form" :model="form" label-width="80px">
    <el-form-item label="name">
      <el-input v-model="form.name" />
    </el-form-item>
    <el-form-item label="gender">
      <el-input v-model="form.gender" />
    </el-form-item>
    <el-form-item label="email">
      <el-input v-model="form.email" />
    </el-form-item>
    <el-form-item label="phone">
      <el-input v-model="form.phone" />
    </el-form-item>
    <el-form-item label="registered">
      <el-input v-model="form.registered" />
    </el-form-item>
    <el-form-item label="picture">
      <el-image
        style="width: 100px; height: 100px"
        :src="form.picture"
      />
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="$router.back()">返回</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  data() {
    return {
      form: {
        name: '',
        gender: '',
        email: '',
        phone: '',
        registered: '',
        picture: ''
      }
    }
  },
  mounted() {
    console.log(this.$route.query)
    this.form = this.$route.query.row
  }
}
</script>

<style lang="less" scoped></style>
